<!DOCTYPE HTML>
<html lang="en" class="no-js fixed-layout">
<head>
    <title>新增项目</title>
    <style type="text/css">
        [v-cloak] {
            display: none;
        }

        .fileinput-button {
            position: relative;
            display: inline-block;
            overflow: hidden;
        }

        .fileinput-button input{
            position: absolute;
            left: 0px;
            top: 0px;
            opacity: 0;
            -ms-filter: 'alpha(opacity=0)';
            font-size: 200px;
        }
    </style>
</head>
<body>
<div class="container-fluid" style="background-color: #fafafa;!important;">
    <form class="form-inline" id="projectListSubmitForm"  enctype="application/json; charset=UTF-8"  method="POST"  >
        <table class="table" contenteditable="false" border="0" draggable="false" spellcheck="false" style="text-align: center;">
            <tbody >
            <tr style="border:1px solid #ccc;!important;">
                <td style="text-align: right"><label>导入文件路径</label></td>
                <td>
                    <input id="filePath" type="text" name="filePath" size="30">
                    <span class="btn btn-success fileinput-button">
                        <span>选择</span>
                         <input class="file" type="file" id="selectPath" name="fileString" webkitdirectory directory>
                    </span>
                </td>
                <td style="text-align: right">保存文件路劲</td>
                <td>
                    <input id="savePath" type="text" name="savePath" size="30">
                    <span class="btn btn-success fileinput-button">
                        <span id="cliecksds">选择</span>
                        <input class="file" type="file" id="saveFilePath" name="fileString" webkitdirectory directory>
                    </span>
                </td>
            </tr>
            </tbody>
            <tfoot style="text-align: left;">Excel合并</tfoot>
        </table>
        <div class="container-fluid" style="background-color: #fafafa;!important;">
            <div class="form-group">
                <div class="col-sm-5">
                    <input id="excelSubmit" type="button" class="btn btn-primary" value="excute">
                </div>
            </div>
        </div>
    </form>
</div>
<script>
    seajs.use("projectAdd");
</script>
<script>
    //异步提交表单
    $("#excelSubmit").on("click",function(){
        $.ajax({
            type : 'POST',
            url : '/manage/excel/excute',
            dataType : 'json',
            contentType : 'application/json',
            beforeSend : function () {
            },
            success : function (data) { // 返回的RequestResult的json对象
                $.MsgBox.Confirm("提示", data.message);
            },
        });
    });
</script>
</body>
</html>
